home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19990725-20000114
/
000091_news@columbia.edu _Fri Sep 10 13:51:15 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-01-13
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA03907
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 10 Sep 1999 13:51:14 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA06728
for kermit.misc@watsun.cc.columbia.edu; Fri, 10 Sep 1999 13:29:30 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: OOP shell scripting
Date: 10 Sep 1999 17:29:30 GMT
Organization: Columbia University
Message-ID: <7rbf5q$6i5$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <7r9v08$obv$1@holly.prod.itd.earthlink.net>,
Kurt Harriger <kurbylogic@earthlink.net> wrote:
: Hi all, looking for a better way to use OOP patterns when doing shell
: scripting to make my scripts more reusable.
:
: I was thinking some kinda . library plus a different scripting approach to
: call various functions such as eval and $obj.method when calling to support
: a limited polymorphic behavior.
: Any one ever done anything like this with shell scripting. Maybe
:
: Shell scripts seem more reusable then one large binary. Java would work
: nice except that it requires the runtime be installed on many systems before
: any of my libraries are useful on those systems.
:
If you use C-Kermit 7.0:
http://www.columbia.edu/kermit/ck70.html
as your script interpreter rather than ksh, bash, etc (don't laugh until
you've looked), the basic constructs of object oriented programming (classes,
containers, inheritance, semaphores, etc) are illustrated in the C-Kermit
script library:
http://www.columbia.edu/kermit/ckscripts.html
- Frank